Merged
Conversation
…iplicities) Closes #532. Adds IntegerKnapsack to `src/models/set/` with Max<i64> value type, per-item variable domains {0,...,floor(B/s_i)}, CLI create support, canonical example, paper entry, and 20 unit tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #815 +/- ##
========================================
Coverage 97.85% 97.86%
========================================
Files 633 635 +2
Lines 69346 69612 +266
========================================
+ Hits 67859 68126 +267
+ Misses 1487 1486 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Agentic Review ReportStructural CheckStructural Review: model IntegerKnapsackStructural Completeness
Build Status
Semantic Review
Issue Compliance
Summary
Quality CheckQuality ReviewDesign Principles
HCI (if CLI/MCP changed)
Test Quality
IssuesCritical (Must Fix)
Important (Should Fix)
Minor (Nice to Have)
Summary
Agentic Feature TestsAgentic Feature TestsSummaryI tested the Test Results
Issues Found
Reproduction / Classification
Doc Suggestions
Verdictfail Generated by review-pipeline |
…apsack Use TryFrom<RawIntegerKnapsack> pattern to validate cross-field invariants (sizes/values length match) during deserialization, preventing panics from malformed JSON. Add anyhow::ensure! checks in CLI create path for friendly error messages instead of assertion panics on invalid user input. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IntegerKnapsackmodel tosrc/models/set/— the unbounded knapsack variant where items can be selected with non-negative integer multiplicitiesMax<i64>, variable domains{0,...,floor(B/s_i)}per item, complexity(capacity+1)^num_itemspred create IntegerKnapsack --sizes ... --values ... --capacity ...), canonical example-db entry, paper entry with exampleclose #532
Test plan
make fmt-checkpassesmake clippypassesmake testpasses (all workspace tests)make papercompiles🤖 Generated with Claude Code